//
//  RedPageViewController.m
//  跨界收
//
//  Created by Allen on 2018/10/27.
//  Copyright © 2018年 gztx. All rights reserved.
//

#import "RedPageViewController.h"
#import "PayView.h"

@interface RedPageViewController ()
@property (weak, nonatomic) IBOutlet UITextField *totalMoneyTextField;
@property (weak, nonatomic) IBOutlet UITextField *redpageNumberTextField;
@property (weak, nonatomic) IBOutlet UITextField *zhufuTextField;
@property (weak, nonatomic) IBOutlet UILabel *totalMoneyLabel;
@property (nonatomic, strong) PayView *payView;

@end

@implementation RedPageViewController
- (IBAction)click:(id)sender {
    self.payView = [PayView shareIntance];
    WeakSelf;
    self.payView.payBlock = ^(id  _Nonnull sender) {
        NSLog(@"pay");
    };
    self.payView.closeBlock = ^(id  _Nonnull sender) {
        [weakSelf.payView removeFromSuperview];
    };
    self.payView.frame = CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
    [self.view.window addSubview:self.payView];
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.navigationController.navigationBarHidden = NO;
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"发红包";
    // Do any additional setup after loading the view from its nib.
}
@end
